package node.servlet;


import java.io.IOException;

import javax.servlet.ServletException;


import util.BaseServlet;
import util.Properties;

public class CommonServlet extends BaseServlet {

	protected void doBusiness() {
		String sort = request.getParameter("sort");
		System.out.println("sort:" + sort);
		if ("index".equals(sort)) {
			indexPage();
		}

	}

	private void indexPage() {
		String systemName=Properties.getProperties("systemName");
		request.setAttribute("systemName", systemName);
		try {
			request.getRequestDispatcher("index.jsp").forward(request, response);
		} catch (ServletException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}


}
